// 权限问题后期增加
import { get, post } from '/@/utils/http/axios'
import { BannerState } from '/@/store/modules/homePage/types'

enum URL {
  studyCenter = '/api/student/studycenter/', // 学习中心展示的统计数据
  studyProgressList = '/api/student/study/courselist/', // 学习进度列表 / 学习课程列表


  homeworkList = '/api/student/study/homeworklist/', // 作业列表
  homeWorkListForCourse = '/api/student/study/homeworkcourse/', // 指定课程的作业列表
  uploadHomeWork = '/api/organ/student/import/', // 上传作业
}
const studyCenter = async (data) => post<any>({url :URL.studyCenter, data});
/// 学习进度列表 / 学习课程列表
const studyProgressList = async (data) => post<any>({url :URL.studyProgressList, data});

const homeworkList = async (data) => post<any>({url :URL.homeworkList, data});
const homeWorkListForCourse = async (data) => post<any>({url :URL.homeWorkListForCourse, data});
const uploadHomeWork = async (data) => post<any>({url :URL.uploadHomeWork, data});

export { 
  studyCenter, studyProgressList,
  homeworkList, homeWorkListForCourse, uploadHomeWork 
}